#include "../include/dir.h"

int main() {
    path_t myPath;
    char buf[4096] = {0};

    // 初始化路径
    init_path(&myPath);

    // 列出当前目录
    handle_ls(&myPath, ".", buf, sizeof(buf));
    printf("当前目录内容:\n%s", buf);

    // 创建目录
    handle_mkdir(&myPath, "testDir", buf, sizeof(buf));
    printf("%s", buf);

    // 列出当前目录
    handle_ls(&myPath, ".", buf, sizeof(buf));
    printf("当前目录内容:\n%s", buf);

    return 0;
}

